local jiaozi = fk.CreateSkill {

  name = "joy__jiaozi",

  tags = { Skill.Compulsory, },

}



jiaozi:addEffect(fk.DamageCaused, {
  name = "joy__jiaozi",
  anim_type = "offensive",
  events = {fk.DamageCaused},
  frequency = Skill.Compulsory,
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(jiaozi.name) and
      table.every(player.room:getOtherPlayers(player), function(p)
        return player:getHandcardNum() >= p:getHandcardNum() end)
  end,
  on_use = function(self, event, target, player, data)
    data.damage = data.damage + 1
  end,
})

return jiaozi